package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2024/01/08 22:32:03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_weight_data",dataSource = "device")
public class SysWeightData implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private String machineName;

    private BigDecimal num;

    @ApiModelProperty("")
    @Column(onInsertValue = "now()")
    private Date createTime;

    @ApiModelProperty("")
    @Column(onUpdateValue = "now()")
    private Date updateTime;

    private String unit;

    private String productRecordId;

    private String workPlanId;

}
